package com.gxa.service.impl;

import com.gxa.domain.entity.ProductCategory;
import com.gxa.mapper.ProductCategoryMapper;
import com.gxa.service.ProductCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品分类服务实现类
 */
@Service
public class ProductCategoryServiceImpl implements ProductCategoryService {
    
    @Autowired
    private ProductCategoryMapper productCategoryMapper;
    
    @Override
    public Integer getCategoryIdByName(String name) {
        return productCategoryMapper.getCategoryIdByName(name);
    }
    
    @Override
    public String getCategoryNameById(Integer categoryNo) {
        return productCategoryMapper.getCategoryNameById(categoryNo);
    }

    @Override
    public List<ProductCategory> findCategoryListAll() {
        return productCategoryMapper.findCategoryListAll();
    }
} 